import { http } from "@/utils/http";
import { URL_PREFIX } from "@/api/constants";
type Result = {
  success: boolean;
  data: Array<any>;
};

export const getAsyncRoutes = () => {
  return http.request<Result>("get", `${URL_PREFIX}/routes`);
};
